import VueRouter from "vue-router";
import HomeView from "@/views/HomeView.vue";
import Main from "@/components/Main.vue";
import Login from "@/components/Login.vue"
import Register from "@/components/Register.vue";
export default new VueRouter({
    routes:[
        {
            name: 'HomeView',
            path: '/',
            component: HomeView,
            children:[
                {
                    name: 'Main',
                    path: '/Main1',
                    component: Main
                },
            ]
        },
        {
            name: 'Login',
            path: '/Login',
            component: Login,
        },
        {
            name: 'Register',
            path: '/Register',
            component: Register,
        }
    ]
})